﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RoadTeam.Enums;
using System.Reflection;
using System.Data;

namespace RoadTeam.SysInterface
{
    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.ICsAppeal _iCsAppeal = null;
        /// <summary>
        /// 获取ICsAppeal实现业务的实例
        /// </summary>
        /// <returns></returns>
        public static ICsAppeal CreateCsAppeal()
        {
            if (_iCsAppeal == null)
            {
                string className = GlobalConfig.RtSystemPath + ".CS.Appeal.CsAppeal_Sys";
                _iCsAppeal = (ICsAppeal)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iCsAppeal;
        }
    }



    public interface ICsAppeal
    {
        /// <summary>
        /// 插入投诉单
        /// </summary>
        /// <param name="dt">投诉单数据集合</param>
        /// <returns>是否插入成功</returns>
        bool InsertCsAppeal(DataTable dt);
        /// <summary>
        /// 获取空投诉单表
        /// </summary>
        /// <returns></returns>
        DataTable GetEmptyTable();

    }
}
